<?php if(!defined("PATH_HD"))exit;?>
<title>发布需求</title> 
<script type='text/javascript' src='http://localhost/zyhhdcms/xm/hdphp/org/jquery-1.7.2.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/zyhhdcms/xm';
		HDPHP = 'http://localhost/zyhhdcms/xm/hdphp';
		STATIC = 'http://localhost/zyhhdcms/xm/static';
		DATA = 'http://localhost/zyhhdcms/xm/data';
		WEB = 'http://localhost/zyhhdcms/xm/index.php';
		APP = 'http://localhost/zyhhdcms/xm/index.php/index';
		CONTROL = 'http://localhost/zyhhdcms/xm/index.php/index/xuqiu';
		METH = 'http://localhost/zyhhdcms/xm/index.php/index/xuqiu/add';
		URL = 'http://localhost/zyhhdcms/xm/index.php/index/xuqiu/add/cateid/1';
		ORG = 'http://localhost/zyhhdcms/xm/hdphp/org';
		TPL = 'http://localhost/zyhhdcms/xm/index/index/tpl';
		PUBLIC = 'http://localhost/zyhhdcms/xm/index/index/tpl/public';
</script> 
<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>猪八戒网</title>
<head>
  <script type='text/javascript' src='http://localhost/zyhhdcms/xm/hdphp/org/jquery-1.7.2.min.js'></script>
  <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/zyhhdcms/xm';
		HDPHP = 'http://localhost/zyhhdcms/xm/hdphp';
		STATIC = 'http://localhost/zyhhdcms/xm/static';
		DATA = 'http://localhost/zyhhdcms/xm/data';
		WEB = 'http://localhost/zyhhdcms/xm/index.php';
		APP = 'http://localhost/zyhhdcms/xm/index.php/index';
		CONTROL = 'http://localhost/zyhhdcms/xm/index.php/index/xuqiu';
		METH = 'http://localhost/zyhhdcms/xm/index.php/index/xuqiu/add';
		URL = 'http://localhost/zyhhdcms/xm/index.php/index/xuqiu/add/cateid/1';
		ORG = 'http://localhost/zyhhdcms/xm/hdphp/org';
		TPL = 'http://localhost/zyhhdcms/xm/index/index/tpl';
		PUBLIC = 'http://localhost/zyhhdcms/xm/index/index/tpl/public';
</script> 
<link type="text/css" rel="stylesheet" href="http://localhost/zyhhdcms/xm/index/index/tpl/public/css/head.css"/>
<script type="text/javascript" src="<?php echo "http://localhost/zyhhdcms/xm/index/index/tpl/public/js/index.js";?>"></script>
</head>
<body>
	<a href="javascript:void(0)" id="go_top"></a>
	<div id="top">
		<div class="big">
			<div id="top_menu"><!--导航栏开始-->
				
				<a href="http://localhost/zyhhdcms/xm/index.php/index">猪八戒网</a>
				<span>|</span>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/xuqiu">English</a>
				<div class="top_right">

					<ul >
						<li><h5><a href="#">推广</a></h5></li><span>|</span>
						<li><h5><a href="#">服务热线：400-188-6666</a></h5></li><span>|</span>
						<li><h5><a href="#"> 帮助中心</a></h5></li><span>|</span>
						<li><h5><a href="#">社区</a></h5></li><span>|</span>
						<li><h5><a href="#">网站导航</a></h5>
						<div class="under">
							<a href="#">我的猪八戒</a>
							<a href="#">已购买的服务</a>
							<a href="#">我的主页</a>
							<a href="#">我的猪八戒</a>
						</div></li>	<span>|</span>
						<li><h5><a href="#">服务商中心</a></h5><div class="under">
							<a href="#">服务商中心</a>
							<a href="#">已经卖出去的服务</a>
							<a href="#">出售中的服务</a>
							<a href="#">服务商中心</a>
						</div>
						</li><span>|</span>
						<li><h5><a href="#">我的猪八戒</a></h5>
						<div class="under">
							<a href="#">我的猪八戒</a>
							<a href="#">已购买的服务</a>
							<a href="#">我的主页</a>
							<a href="#">我的猪八戒</a>
						</div>
						</li><span>|</span>
						<li><h5><a href="#" class="xial">我的关注</a></h5></li><span>|</span>
						<li class="on"><h5><a href="#" class="on" >发布需求</a></h5></li><span>|</span>
 
					</ul>
				</div>
			</div>
			
		<img src="http://localhost/zyhhdcms/xm/static/images/head_top.jpg" style="float:left;margin-left:10.5px;"  />
		</div>
		</div><!--导航栏结束-->
	<div id="lo_fo"><!--logo和表单部分-->
		<div class="big">
		<div class="form">
			<a href="http://localhost/zyhhdcms/xm/index.php/index">
				<img src="http://localhost/zyhhdcms/xm/static/images/logo_z.png"  class="logo"/></a><!--LOGO图片-->
			<a href="http://localhost/zyhhdcms/xm/index.php/index/xuqiu" class="what">&nbsp;</a>
			<form  action="http://localhost/zyhhdcms/xm/index.php/index/xuqiu/search">
				<input type="text" class="search" value="你搜索的关键字"/>
				<input type="submit" value="" class="button" />	
			</form><!-- 搜索表单 -->
			
		<div class="login"><!-- 登陆和注册表单 -->

			<?php if(empty($_SESSION['username'])){?>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/xuqiu/add_user">免费注册</a><span>|</span>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/xuqiu/login">登陆</a>
				<a href="#" class="other" ></a>
				<span class="more"></span>
				<!-- 其他登陆方式 -->
			<?php  }else{ ?> 
				<div class="mesg">
				<img src="http://localhost/zyhhdcms/xm/static/images/head/tou1.gif"  />
				<span class="username">
					<a href="http://localhost/zyhhdcms/xm/index.php/index/mement"><?php echo $_SESSION['username']?></a>
					<b class="b1"></b>
					<b class="b2"></b>
				</span>
			<a href="http://localhost/zyhhdcms/xm/index.php/index/mement/note" class="email"><b><?php echo $_SESSION['noteNum']?></b></a>
			</div>
				<?php }?></div>
				<div class="other_on">
				<ul>
				<a href="#"><li class="qq"></li></a>
				<a href="#"><li class="sina"></li></a>
 				</ul>
			</div>		

			
		</div>
	</div>
</div>
	<div id="menu"><!--网站导航栏-->
		<div class="big">
			<ul>
				<a href="CONTROL"><li>首页</li></a>
				<a href="#"><li>所有需求</li></a>
				<?php if(!empty($row)){$listCount = count($row);$list_id4=0;?><?php foreach($row as $key=>$list){?><?php $list_id4+=1;?>
				<?php if($list['pid']==0){?>	
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $list['cateid'];?>">
					<li><?php echo $list['cname'];?></li></a><?php }?>
			<?php }?><?php }?>
			</ul>
			<ul id="new">
				<a href="#"><li>赚美金</li></a>
				<a href="#"><li>网站建设</li></a>
				<a href="#"><li>视频</li></a>
				<a href="#"><li>大赛</li></a>
				<a href="#"><li>图书</li></a>
				<a href="#"><li>微博</li></a>
			</ul>	
	</div>
</div>
<link type="text/css" rel="stylesheet" href="http://localhost/zyhhdcms/xm/index/index/tpl/public/css/xuqiuadd.css"/>
<link type="text/css" rel="stylesheet" href="__STATIC_/ui/uploadify/uploadify.css"/>
<style type="text/css">
/*
Uploadify
Copyright (c) 2012 Reactive Apps, Ronnie Garcia
Released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
#file_upload{
	text-decoration: underline;
	color: blue;
	width: 50px;

}
.uploadify-queue-item .cancel a {
	background: url(./uploadify-cancel.png) 0 0 no-repeat;
	float: right;
	height:	16px;
	text-indent: -9999px;
	width: 16px;
}


</style> 

<script type="text/javascript" src="<?php echo "http://localhost/zyhhdcms/xm/index/index/tpl/public/js/xuqiuadd.js";?>"></script>
<script type="text/javascript" src="<?php echo "http://localhost/zyhhdcms/xm/index/index/tpl/public/uploadify/uploadify.js";?>"></script>
<script type="text/javascript">
		<?php $timestamp = time();?>
		$(function() {
			$('#file_upload').uploadify({
				'formData'     : {
					'timestamp' : '<?php echo $timestamp;?>',
					'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
				},
				'width':'50px',
				'swf'      : PUBLIC+'/uploadify/uploadify.swf',
				'uploader' : PUBLIC+'/uploadify/uploadify.php',
				'auto'	   :true,
				'muti'	   :true,
				'buttonText'    : '上传附件',  
				'removeCompleted':'false',
				'onUploadSuccess':function(file,data,response){	
					  // alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);//data返回的结果等于异步传回来的值, file就上上传的文件
					$('#file_upload').append("<input type='hidden'name='thumb[]'value="+'upload/'+file.name+"/>");
					
					},
			})
		})


</script>
</div></div>
	<div id="body">
		<div class="big">

			<div class="dh"><!--导航-->
			<span class="on">描述需求</span><span>确认</span><span>发布成功</span>
			</div>
		<div id="cont">	
		<form method="post" action="http://localhost/zyhhdcms/xm/index.php/index/xuqiu/xuqiu_add">
			
			<input type="hidden" value="<?php echo isset($_GET['cateid'])?$_GET['cateid']:''?>" name="cateid"class="cateid"/>
				<div class="c_l">
				<p><b>选择类目：</b>
					<?php if(isset($self)){?>
						<span class="sp1" cid="<?php echo $pparent['cateid'];?>"><?php echo $pparent['cname'];?></span>
						>>>
						<span class="sp2" cid="<?php echo $parent['cateid'];?>"><?php echo $parent['cname'];?></span>
						>>>
						<span class="sp3" cid="<?php echo $self['cateid'];?>"><?php echo $self['cname'];?></span>
					
					<?php  }else{ ?>
						<span class="sp1" >最新分类</span> >>>
						<span class="sp2">最新分类</span> >>>
						<span class="sp3">最新分类</span> >>>
						<?php }?>
					<a href="javascript:void(0)" class="change">重选分类</a>
				</p>
				<div id="lan">
					</div>
					<div id="lanm">
						<div id="lan_t">
							<p class="p1"> 选择分类<span>×</span></p>
							<div class="lan_s">
								<span>搜索:</span><input type="text" name="search" />
								<em></em>
								<p class="button"></p>
							</div>
						</div>
 					<ul class="u1">
 						<?php if(!empty($cate)){$listCount = count($cate);$list_id1=0;?><?php foreach($cate as $key=>$m){?><?php $list_id1+=1;?>
 						  <?php if($m['pid']==0){?>
 							<li><h1 cid="<?php echo $m['cateid'];?>"><?php echo $m['cname'];?></h1>
 								<?php if(!empty($cate)){$listCount = count($cate);$list_id2=0;?><?php foreach($cate as $key=>$n){?><?php $list_id2+=1;?>	
 									<?php if($n['pid']==$m['cateid']){?>
 										<ul class="u4">	
 											<li><h2 cid="<?php echo $n['cateid'];?>"><?php echo $n['cname'];?></h2>
 												<?php if(!empty($cate)){$listCount = count($cate);$list_id3=0;?><?php foreach($cate as $key=>$x){?><?php $list_id3+=1;?>
 													<?php if($x['pid']==$n['cateid']){?>
 														<ul class="u5">
 															<li><h3 cid="<?php echo $x['cateid'];?>"><?php echo $x['cname'];?></h3></li>
 														</ul>
 													<?php }?>
 												<?php }?><?php }?>
 										
 											</li>
 										
 										</ul>
 									<?php }?>
 								<?php }?><?php }?>
 							</li>
 						  <?php }?>
 						<?php }?><?php }?>
 					</ul>
 					<p class="xia"></p>
 					<ul class="u2"></ul>
 					<p class="xia"></p>
 					<ul class="u3"></ul>
 				</div>
				
				<p class="error2"><span class="error"></span>
			 	<b>请选择分类</b>
			 </p>
			 <div class="c"></div>
				<h4>一句话描述您的需求</h4>		
				
					<p class="title">
						<i></i>
						<input type="text" name="title" value="例如：XX科技公司LOGO设计" class="text"/>
				<p class="error1"><span class="error"></span>
			 	<b>应为2~30个字</b>
			 </p>
					</p>
					<h5>将需求说得详细些 <a href="">看看别人怎么写</a></h5>
					<div class="ed">
					<script type="text/javascript">HD_UEDITOR_ROOT="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/";</script><script type="text/javascript" src="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/editor_config.js"></script>
		<script type="text/javascript" src="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/editor_all.js"></script>
		<link rel="stylesheet" href="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/themes/default/ueditor.css"><script type="text/plain" name="con" id="hd_ueditor21" style=' width:500px'></script><script type="text/javascript" >var editorOption = {
                        autoFloatEnabled:false,
                         toolbars:[['FullScreen', 'Source', 'Undo', 'Redo','Bold']],
                         imageUrl:"http://localhost/zyhhdcms/xm/index.php/index/xuqiu/editorupload",
                         imagePath:"",
                         fileUrl:"http://localhost/zyhhdcms/xm/index.php/index/xuqiu/editorupload",
                         filePath:"",
                         maximumWords:100,
                         minFrameHeight:200
                    };var editor = new baidu.editor.ui.Editor(editorOption);
                    editor.render("hd_ueditor21")</script>
				</div>
			
				<div id="queue"></div>
				<input id="file_upload" name="file_upload" type="file" multiple="true" style="cursor:pointer">
				<input type="hidden" name="thumb[]"value='' class="upload"/>
				<!-- <a href="javascript:$('#file_upload').uploadify;">上传文件</a> -->
				<!-- <a href="javascript:$('#file_upload').fileUploadClearQueue();">取消上传队列</a> -->
				<p class="help">
					<span>最多可添加五个附件，每个大小不超过10MB</span>
					<a href="http://localhost/zyhhdcms/xm/index/index/tpl/public/help">无法正常上传?</a>
					</p>

				<div class="lx">
					<b>联系方式</b>
					<i></i>
					<span>真实的联系方式有助于客服及时与您沟通</span>
					</div>

				<div id="shouji"><!--手机号-->
					<span class="phone"></span>
					<input type="text" value="输入手机号码" name="phone"class="text" />
				</div>

			 <p class="error2"><span class="error"></span>
			 	<b>请输入正确的手机号</b>
			 </p>
			 <div class="time">
			 酬金:
			 	<input type="text" name="price"class="price" style="height: 26px;font-size:16px;width:70px;overflow:auto"/> 元
			 	</div>
				<p class="error1" style="left:160px;top:-46px;"><span class="error"></span>
			 	<b>请填写酬金</b>			 	 		 
			 <div class="time">
			 投标期限:
				 <input type="radio" name="time" value="7"/>一个星期
				 <input type="radio" name="time" value="10" />10天
				 <input type="radio" name="time" value="15" />半个月
				 <input type="radio" name="time" value="30"/>一个月
			 	 		 </div>
			 <div class="time">
			 	参与方式：
			 	<input type="radio" name="style" value="1" />先交稿	
			 	<input type="radio" name="style" value="2" />先报价
			 </div>	 

			 <div class="time">
				 <input type="checkbox" name="need" value="1" />&nbsp;&nbsp;登陆可见
				 <input type="checkbox" name="hot"   value="1" />&nbsp;&nbsp;热门推荐
			</div>
			<div id="xieyi"><!--协议-->
					<input type="checkbox" class="chek" />
					<span>我已阅读并接受</span>《
				<a href="#">猪八戒网任务发布协议(试行)</a>》	
			</div>
			 <input type="submit" class="sub" value=""/>
			
			</div>
		</form>
		
		
		<div id="c_r">
			<h3>猪八戒网为您承诺</h3>
			<ul>
				<li><a href="#">服务商100%实名认证</a></li>
				<li><a href="#">无有效稿件，全额退款</a></li>
				<li><a href="#">交易担保，满意后付款</a></li>
				<li><a href="#">	提供发票		</a></li>
			</ul>
			<p><b>不会发需求？</b></p>
				<a href="#">
					<img src="http://localhost/zyhhdcms/xm/static/images/zbjcall.jpg"/>
				</a>
			<p>
				<span>全国统一服务热线</span>
				<h4 style="margin-left:65px;font-size:20px;">400-166-7882</h4>			
			</p>


		</div>
		</div>

	</div>
	<div class="big" style="background:#E3E3E3;border:none">
	<div class="chil"></div>
</div>
</div>